import { inject, observer } from 'mobx-react'
import { Button } from 'antd-mobile'
import styles from './index.module.less'

const Demo = (props: any) => {
    const {
        userStore: { userData },
        siteStore: { siteData },
    } = props || {}

    return (
        <div>
            <Button color="primary">
                Demo{userData.name}
                {siteData.name}
            </Button>
            <div className={styles.page}>
                <div />
            </div>
            <div />
        </div>
    )
}

export default inject('userStore', 'siteStore')(observer(Demo))
